/**
 * Created on 2023/6/8
 * @author Hong Luo
 **/

import { defineStore } from 'pinia';

export type AppStoreType = {
  name?: string;
  version?: string;
  dependencies?: object;
};
export const AppStore = defineStore('app', {
  state: () => ({
    app: {} as AppStoreType
  }),
  getters: {
    getApp(state) {
      return state.app;
    }
  },
  actions: {
    setApp(app?: AppStoreType) {
      this.app = app;
    }
  }
});